import axios from 'axios';
import type {
  Result,
} from './typings';

/**
 * 文件上传接口 POST /api/upload
 */
export async function post_api_upload (
  options?: Record<string, any>,
): Promise<Result<any>> {
  return axios({
    method: 'POST',
    url: `/api/upload`,
    ...(options || {}),
  })
}
